package cn.stronglink.assetmanage.business.check.presenter;

import java.util.List;

import cn.stronglink.assetmanage.business.check.model.WaitAssetModel;
import cn.stronglink.assetmanage.business.check.view.wait.WaitAssetView;
import cn.stronglink.assetmanage.entity.Asset;
import cn.stronglink.assetmanage.index.base.BasePresenter;

/**
 * Created by chencongcong on 2018/6/12.
 */

public class WaitAssetPresenter extends BasePresenter {
    private WaitAssetView waitAssetView;
    private WaitAssetModel waitAssetModel;
    //具体某个表单资源列表
    private List<Asset> orderList;

    public WaitAssetPresenter(WaitAssetView waitAssetView, WaitAssetModel waitAssetModel) {
        this.waitAssetView = waitAssetView;
        this.waitAssetModel = waitAssetModel;
    }


    @Override
    public void onStart() {

    }

    @Override
    public void onStop() {

    }

    @Override
    public void start() {

    }



    /**
     * 显示详情页，需要跳转到详情页界面
     * @param postion
     */
    public void showDetailData(int postion) {
        //获得要显示详细信息的资产编号
        Asset asset= orderList.get(postion);
        waitAssetView.showWaitOrderDetail(asset);

    }
}
